import { ADD_COUNT, ADD_PRODUCT } from './mutition_type'

export default {
  [ADD_COUNT](state, payload) {
    payload.counter += 1
  },
  [ADD_PRODUCT](state, payload) {
    payload.isCheck = true
    state.cartlist.push(payload)
  }
}